//
//  SAFMDBManger.h
//  Saas
//
//  Created by 黄志刚 on 2022/2/16.
//  Copyright © 2022 bing. All rights reserved.
//

#import <Foundation/Foundation.h>
@class SADataModel,SASalesOrderViewListModel;

typedef void(^getAllData)(NSMutableArray<SASalesOrderViewListModel*> *dataMarr);
typedef void(^getAllPhoneData)(NSMutableArray *phoneMarr);

@interface SAFMDBManger : NSObject

+ (SAFMDBManger *)sharedInstance;

-(NSString *)getUpdateTime;

- (BOOL)coverData:(NSMutableArray<SADataModel *> *)dataMarr;//覆盖数据

- (BOOL)updateData:(NSMutableArray<SADataModel *> *)dataMarr AndIds:(NSString *)ids;

- (BOOL)readAllDataWithMdic:(NSMutableDictionary *)mdic CurrentPage:(NSInteger)currentPage Sort:(NSString *)sort SearchStr:(NSString *)searchStr AndDataArr:(getAllData)allDataBlock;

//更新手机
- (BOOL)updatePhoneData:(NSString *)phone;

- (BOOL)readAllPhoneData:(NSString *)search AndDataArr:(getAllPhoneData)allDataBlock;

@end

